<template>
  <div>
    <el-container v-if="!$route.meta.admin">
      <!-- header -->
      <el-header>
        <MyHeader></MyHeader>
      </el-header>
      <!-- main -->
      <el-main>
        <router-view></router-view>
      </el-main>
      <!-- footer -->
      <el-footer>
        
      </el-footer>
    </el-container>
    <router-view v-else></router-view>
  </div>
</template>

<script>
import MyHeader from './components/MyHeader.vue';
export default {
    components: { MyHeader }
}
</script>

<style lang="scss">
*{
  margin: 0;
  padding: 0;
}
</style>